#include "base/core/compress.h"

#ifdef __cplusplus
extern "C"
{
#include "lzf/lzf.h"
}
#else 
#include "lzf/lzf.h"
#endif

unsigned int Compress(const void *const inBuffer,
	unsigned int inLen,
	void *outBuffer,
	unsigned int outSize)
{
	return lzf_compress(inBuffer, inLen, outBuffer, outSize);
}

unsigned int Decompress(const void *const inBuffer,
	unsigned int inLen,
	void *outBuffer,
	unsigned int outSize)
{
	return lzf_decompress(inBuffer, inLen, outBuffer, outSize);
}
